package com.myh.gulimall.product.feign;

import com.myh.common.to.SpuBoundTo;
import com.myh.common.utils.R;
import com.myh.gulimall.product.to.SkuLadderTo;
import com.myh.gulimall.product.to.SkuMemberPriceTo;
import com.myh.gulimall.product.to.SkuReductionTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Description: // 类说明，在创建类时要填写
 * @ClassName: CouponFeignService    // 类名，会自动填充
 * @Author: MYH          // 创建者
 * @Date: 2024/2/8 18:27   // 时间
 * @Version: 1.0     // 版本
 */
@FeignClient("gulimall-coupon")
public interface CouponFeignService {



    @RequestMapping("/coupon/spubounds/save")
    //@RequiresPermissions("coupon:spubounds:save")
    R saveSpuBounds(@RequestBody SpuBoundTo spuBoundTo);


    @RequestMapping("/coupon/skufullreduction/save")
    R saveReduction(@RequestBody SkuReductionTo skuReductionTo);

    @RequestMapping("/coupon/skuladder/save")
    R saveLadder(@RequestBody SkuLadderTo skuLadderTo);

    @RequestMapping("/coupon/memberprice/save")
    R saveMemberPrice(@RequestBody SkuMemberPriceTo skuMemberPriceTo);
}
